package practicedemo28;

public class Car {
    private String Brand;
    private double Price;

    //set方法
    public void setBrand(String b){
        Brand = b;
    }
    public void setPrice(double p){
        Price = p;
    }

    //get方法
    public String getBrand(){
        return Brand;
    }
    public double getPrice(){
        return  Price;
    }

}
